package com.ruoyi.project.treat.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.treat.domain.TreRegister;
import com.ruoyi.project.treat.service.ITreRegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/treat/register")
public class TreRegisterController  extends BaseController {
   @Autowired
    private ITreRegisterService iTreRegisterService;

   @RequestMapping("/list")
   public TableDataInfo getRegisterAll(TreRegister treRegister){
       startPage();
       return getDataTable(iTreRegisterService.findRegisterList(treRegister));
   }


}
